package demo.demo02;

/*此程序跳过了100以内所有数字含有的4和7
适用于for循环
跳过当前此次循环进行下一个循环*/
public class Continue {
    public static void main(String[] args) {
        for (int a = 1; a <= 100; a++) {
            if (a == 4) {
                continue;
            }
            if (a == 7) {
                continue;
            }
            if (a % 10 == 4) {
                continue;
            }
            if (a % 10 == 7) {
                continue;
            }
            if (a % 4 == 10) {
                continue;
            }
            if (a % 7 == 10) {
                continue;
            }
            System.out.println(a + "楼到了!");
        }
    }
}